﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace MSN
{
    class LoginData : AppData
    {
        public LoginData(string xmlFile) : base(xmlFile){}

        public override void InitData(string xPath)
        {  
            XmlNode parent = this.xmlDoc.SelectSingleNode(xPath);
            if (parent == null)
            {
                return;
            }

            XmlNodeList nodeList = parent.ChildNodes;
            foreach (XmlNode node in nodeList)
            {
                this.PropertyDict.Add(node.Name, node.InnerText);
            }            
        }
    }
}
